#!/bin/bash
#
# Example of using CRE syntax in shell.

# If the compiler fails, we want to stop the shell script.
set -o errexit

# TODO: cat -> annex convert
readonly foo=$(cat <<EOF
Foo:  either { DIGIT+ as year } or { ALPHA+ as name }
bar: Foo chars(a-z) ~chars(a-z ~alnum) [boundary] [end]
EOF
)


echo $foo

# now you use grep $foo bar.cc
